package com.lgc.javathread.locktest.reentrantLockTest;

public class MyThread extends Thread {
    private ReentrantLockTest2 test = null;
    public MyThread(ReentrantLockTest2 test){
        this.test = test;
    }

    @Override
    public void run() {
        try {
            test.insert(Thread.currentThread());
        } catch (InterruptedException e) {
            System.out.println(Thread.currentThread().getName()+"被中断 " + System.currentTimeMillis());
        }
    }
}
